package my.proxy.rmi.server;

//java –classpath "E:\git_my\boost\design\out\production\classes" proxy.rmi.server.GumballMachineTestDrive
public class GumballMachineTestDrive {
    public static void main(String[] args) throws Exception {
        //糖果机
        GumballMachineProxy gunballMachine = new GumballMachineProxy("127.0.0.1",5).rebind();
        System.out.println(gunballMachine);

        gunballMachine.insertQuarter();
        gunballMachine.turnCrank();
        System.out.println(gunballMachine);

        gunballMachine.insertQuarter();
        gunballMachine.turnCrank();
        gunballMachine.insertQuarter();
        gunballMachine.turnCrank();
        System.out.println(gunballMachine);
    }
}
